Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Time Base Functions / Creating and Disposing of Time Bases


NewTimeBase

The NewTimeBase function allows your application to obtain a new time base. This function returns a reference to the new time base. Your application must use that reference with other time base functions.

pascal TimeBase NewTimeBase (void);
DESCRIPTION
The NewTimeBase function returns a reference to the new time base.

This function sets the rate of the time base to 0, the start time to its minimum value, the time value to 0, and the stop time to its maximum value.

This function assigns the default clock component to the new time base. If you want to assign a different clock component or a master time base to the new time base, use the SetTimeBaseMasterClock or SetTimeBaseMasterTimeBase functions, which are described on page 2-299 and page 2-301, respectively.

SPECIAL CONSIDERATIONS
The NewTimeBase function uses the Memory Manager, so your application must not call it at interrupt time.

ERROR CODES
None


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996